import request from '@/utils/back-request';

//查询客户信息
export function getCustomerInfoInterface(data) {
  return request({
    url: '/api-career/data/center/customer/getCustomerInfo',
    method: 'post',
    data
  });
}
//根据一级查二级
export function positionTreeInterface(data) {
  return request({
    url: '/api-career/campus/getCampusDepartmentTree',
    method: 'post',
    data
  });
}
//校园
export function getCampusDepartmentTree(data) {
  return request({
    url: '/api-career/campus/getCampusDepartmentTree',
    method: 'post',
    data
  });
}
export function getPositions(data) {
  return request({
    url: '/api-career/campus/positions',
    method: 'post',
    data
  });
}
// export function searchPositionByIdInterface(data) {
//   return request({
//     url: "/api-career/data/center/searchPositionById",
//     method: "post",
//     data,
//   });
// }
//只查三级(新接口，增加二层树结构)
export function searchPositionByIdInterface(data) {
  return request({
    url: '/api-career/data/center/homepage',
    method: 'post',
    data
  });
}

//模糊搜索条件
export function matchPositionList(data) {
  return request({
    url: '/api-career/data/center/matchPositionList',
    method: 'post',
    data
  });
}
//模糊搜索条件
export function matchPositionListAll(data) {
  return request({
    url: '/api-career/data/center/matchPositionListAll',
    method: 'post',
    data
  });
}
//热搜职业榜
export function hotSearchPositionList() {
  return request({
    url: '/api-career/data/center/hotSearchPositionList',
    method: 'get'
  });
}
//收藏职业榜
export function collectPositionList(data) {
  return request({
    url: '/api-career/position/rel/positionCollectList',
    method: 'post',
    data
  });
}
export function positionListInterface(data) {
  return request({
    url: '/api-career/data/center/positionList',
    method: 'post',
    data
  });
}

/**
 * 添加记录统计
 * @param params
 * @returns {AxiosPromise}
 */
export function addLog(params) {
  return request({
    url: '/api-career/data/center/addLog',
    method: 'post',
    data: params
  });
}
export function reqQuerySearchAsync(params) {
  return request({
    url: '/api-career/data/center/querySearchAsync',
    method: 'post',
    data: params
  });
}
export function getUpdateNotice(params) {
  return request({
    url: '/api-career/positionSalary/notice',
    method: 'get',
    params
  });
}
// 职业详情---推荐岗位
export function campusJobSearch(params) {
  return request({
    url: '/api-career/campus/job/recommend',
    method: 'post',
    data: params
  });
}
// 全部岗位
export function hotRecruitmentPositionList(params) {
  return request({
    url: '/api-career/campus/job/search',
    method: 'post',
    data: params
  });
}
// 首页 --专业匹配职业-- 热招岗位
export function hotRecruitmentHomePositionList(params) {
  return request({
    url: '/api-career/campus/job/hot',
    method: 'post',
    data: params
  });
}
// 行业列表（请求一次后，存在本地
export function campusJobTrads(params) {
  return request({
    url: '/api-career/campus/job/trads',
    method: 'post',
    data: params
  });
}
// 生成二维码和短链 //参数不变的情况下会缓存
export function createQR(params) {
  return request({
    url: '/api-career/positionSalary/createQR',
    method: 'post',
    data: params
  });
}
// 生成二维码和短链 另一个
export function createQROther(params) {
  return request({
    url: '/api-yp/wechat/getMpQrCode',
    method: 'post',
    data: params
  });
}
// 生成分享图片和二维码
export function generateShareQrPictures(data) {
  return request({
    url: '/api-career/customer/user/generate/zt/share/qr/picture',
    method: 'post',
    data
  });
}
// 查询生成分享图片和二维码
export function getShareQrPictures(data) {
  return request({
    url: '/api-career/customer/user/get/zt/share/qr/picture',
    method: 'post',
    data
  });
}
// 查下高校职途权益
export function getShareQrRights(data) {
  return request({
    url: '/api-career/app/customer/rights',
    method: 'post',
    data
  });
}
// 首页校招企业分析模块专业薪酬、招聘量分析
export function getCompanyTagSalary(data) {
  return request({
    url: '/api-career/chart/tagSalary',
    method: 'post',
    data
  });
}
// 首页校招企业分析模块行业排序
export function getCompanyTagSalaryIndustry(data) {
  return request({
    url: '/api-career/chart/tagSalaryIndustry',
    method: 'post',
    data
  });
}
// 首页校招企业分析模块专业关联的职位列表
export function getCampusTagPositions(data) {
  return request({
    url: '/api-career/campus/tags/positions',
    method: 'post',
    data
  });
}
// 首页校招企业分析模块企业清单
export function getCampusProfessionCompanyList(data) {
  return request({
    url: '/api-career/campus/profession/company/list',
    method: 'post',
    data
  });
}
